package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 中国行政地区表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-08
 */
@Data
@Accessors(chain = true)
@TableName("sys_dict_area")
@ApiModel(value = "SysDictArea对象", description = "中国行政地区表")
public class SysDictArea extends Model<SysDictArea> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("层级")
    @TableField("`level`")
    private Integer level;

    @ApiModelProperty("父级行政代码")
    @TableField("parent_code")
    private Long parentCode;

    @ApiModelProperty("行政代码")
    @TableField("area_code")
    private Long areaCode;

    @ApiModelProperty("邮政编码")
    @TableField("zip_code")
    private Integer zipCode;

    @ApiModelProperty("区号")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty("名称")
    @TableField("`name`")
    private String name;

    @ApiModelProperty("简称")
    @TableField("short_name")
    private String shortName;

    @ApiModelProperty("组合名")
    @TableField("merger_name")
    private String mergerName;

    @ApiModelProperty("拼音")
    @TableField("pinyin")
    private String pinyin;

    @ApiModelProperty("经度")
    @TableField("lng")
    private BigDecimal lng;

    @ApiModelProperty("纬度")
    @TableField("lat")
    private BigDecimal lat;


    public static final String ID = "id";

    public static final String LEVEL = "level";

    public static final String PARENT_CODE = "parent_code";

    public static final String AREA_CODE = "area_code";

    public static final String ZIP_CODE = "zip_code";

    public static final String CITY_CODE = "city_code";

    public static final String NAME = "name";

    public static final String SHORT_NAME = "short_name";

    public static final String MERGER_NAME = "merger_name";

    public static final String PINYIN = "pinyin";

    public static final String LNG = "lng";

    public static final String LAT = "lat";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
